<?php
defined('PT_ACCESS') or die('No direct access');

require DIR_CONFIG . 'startup.php';

$PEAR = new PEAR('errors.txt', 1, 1);
$registry = new Registry();

$db = new mysql($registry);
$registry->set('db', $db);

// Filter Input
$FilterInput = new FilterInput($registry);
$registry->set('FilterInput', $FilterInput);

// Request
$Request = new Request($registry);
$registry->set('req', $Request);

// Response
$Response = new Response($registry);
$registry->set('rep', $Response);

// Language
define('LANGUAGE', 'vn');

$language = new Language(LANGUAGE);
$language->load(LANGUAGE);
$registry->set('language', $language);